﻿<div class=head>用户角色管理 - <%= @user.name + "[" + h(@user.full_name) + "]"%> </div>

<%= error_messages_for 'user' %>  

<div class=area>

<% form_for :user, @user, :url => {:action => "update_roles", :id => @user } do |form| %>
	<ul>
	  <% for role in @all_roles %>
		<li>		
			<%= check_box_tag "user[role_ids][]", role.id, @user.roles.include?(role) %>  
			<%= h(role.name) %> -
			<%= h(role.desc) %> 
		</li>
	  <% end %>
	</ul>
	
	<%= submit_tag "更新权限", :class => "submit" %>
      
<% end %>
</div>